package com.zero.lite.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_category")
public class Category extends Model<Category> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String name;
	private String keywords;
	@TableField("front_desc")
	private String frontDesc;
	@TableField("parent_id")
	private Integer parentId;
	@TableField("sort_order")
	private Integer sortOrder;
	@TableField("show_index")
	private Integer showIndex;
	@TableField("is_show")
	private Integer isShow;
	@TableField("banner_url")
	private String bannerUrl;
	@TableField("icon_url")
	private String iconUrl;
	@TableField("img_url")
	private String imgUrl;
	@TableField("wap_banner_url")
	private String wapBannerUrl;
	private String level;
	private Integer type;
	@TableField("front_name")
	private String frontName;
	@TableField("add_time")
	private LocalDateTime addTime;
	private Integer deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getFrontDesc() {
		return frontDesc;
	}

	public void setFrontDesc(String frontDesc) {
		this.frontDesc = frontDesc;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	public Integer getShowIndex() {
		return showIndex;
	}

	public void setShowIndex(Integer showIndex) {
		this.showIndex = showIndex;
	}

	public Integer getIsShow() {
		return isShow;
	}

	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}

	public String getBannerUrl() {
		return bannerUrl;
	}

	public void setBannerUrl(String bannerUrl) {
		this.bannerUrl = bannerUrl;
	}

	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getWapBannerUrl() {
		return wapBannerUrl;
	}

	public void setWapBannerUrl(String wapBannerUrl) {
		this.wapBannerUrl = wapBannerUrl;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getFrontName() {
		return frontName;
	}

	public void setFrontName(String frontName) {
		this.frontName = frontName;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Category{" +
			"id=" + id +
			", name=" + name +
			", keywords=" + keywords +
			", frontDesc=" + frontDesc +
			", parentId=" + parentId +
			", sortOrder=" + sortOrder +
			", showIndex=" + showIndex +
			", isShow=" + isShow +
			", bannerUrl=" + bannerUrl +
			", iconUrl=" + iconUrl +
			", imgUrl=" + imgUrl +
			", wapBannerUrl=" + wapBannerUrl +
			", level=" + level +
			", type=" + type +
			", frontName=" + frontName +
			", addTime=" + addTime +
			", deleted=" + deleted +
			"}";
	}
}
